import wx
 
__appname = "pyFish"
 
def read(key,defaultVal=wx.EmptyString):
    config = wx.Config(__appname)
    return config.Read(key,defaultVal)
 
def readFloat(key,defaultVal=0.0):
    config = wx.Config(__appname)
    return config.ReadFloat(key,defaultVal)
 
def readInt(key,defaultVal=0):
    config = wx.Config(__appname)
    return config.ReadInt(key,defaultVal)
 
 
def write(key,value):
    config = wx.Config(__appname)
    config.Write(key,value)
 
def writeFloat(key,value):
    config = wx.Config(__appname)
    config.WriteFloat(key,value)
 
def writeInt(key,value):
    config = wx.Config(__appname)
    config.WriteInt(key,value)
